package com.weiqiao.mall.domain;

import lombok.Data;

import java.util.List;

/**
 * 分销设置表
 *
 * @author kjy
 */
@Data
public class DistributeEntity {

    /**
     * 公司ID
     */
    private Integer company_id;

    /**
     * 满足下级会员
     */
    private Integer satisfy_next_member;

    /**
     * 满足下级消费会员
     */
    private Integer satisfy_next_consumption_member;

    /**
     * 满足佣金总额
     */
    private Double satisfy_total_commission;

    /**
     * 满足销售业绩
     */
    private Double satisfy_sale;

    /**
     * 满足完成订单数
     */
    private Integer satisfy_order_nums;

    /**
     * 满足商城消费金额
     */
    private Double satisfy_consumption_amount;

    /**
     * 消费收益比例
     */
    private Double consumption_percent;

    /**
     * 佣金总额
     */
    private List<Commission> total_commission;

    /**
     * 推广收益比例
     */
    private Double generalize_percent;

    /**
     * 推广提成比例
     */
    private Double percentage_percent;

    /**
     * 签收结算天数
     */
    private Integer order_sign_time;

    /**
     * 可提现金额
     */
    private Integer receipt_limit;

    /**
     * 升级标准 0：满足一个1：同时满足
     */
    private Integer upgrade_standard;

    /**
     * 指定商品类型 1：会员专享 4：分销商品 6：全部
     */
    private Integer appoint_type = 0;

    @Data
    public static class Commission {

        /**
         * 佣金总额
         */
        private Double total_commission;

        /**
         * 利润比
         */
        private Double profit_percent;
    }
}
